-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/lit 3379 investigate bls signed session bug #500
Feature/lit 3379 investigate bls signed session bug #500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few questions in-line 👍 :)
packages/lit-node-client-nodejs/src/lib/helpers/validate-bls-session-sig.ts
Show resolved
Hide resolved
packages/lit-node-client-nodejs/src/lib/lit-node-client-nodejs.ts
Outdated
Show resolved
Hide resolved
packages/lit-node-client-nodejs/src/lib/helpers/validate-bls-session-sig.ts
Show resolved
Hide resolved
packages/lit-node-client-nodejs/src/lib/helpers/validate-bls-session-sig.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This PR also fixed the signature missing
issue as we are now properly verifying the bls session sigs within authSig.algo ===
LIT_BLSin the
checkNeedToResignSessionKey` method
Adds BLS signature verification for
checkToResignSessionKey
as we will use thesiwe
verify implementation fored25519
keys.Currently we will effectively retry the operation if the BLS verification fails. The retried operation has a low likelihood of success as we will be performing a retry with the same
network key
which means that it will fail to verify as the same signing key will be used with the same message which produced the original error.It is out of scope of this pr to address the resigning issues for BLS signatures but mentioning it as it is a follow up task to address